﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/framework/head.jsp"%>
<%@ page import="system.download.WritePage"%>
<%@ page import="java.util.Vector"%> 
<%@ page import="system.download.FileBusiness"%>
<%@ page import="java.io.PrintWriter"%>
<script language="javascript">
    function getFile(value){
        if(confirm("下载本文件?")){
            document.all.code.value = value;
            document.all.form.submit();
         }
    }
</script>
  </head>
<!-- 设计:表单提交时,为防止页面提交而产生的刷新数据消失问题,让提交时产生一个新的页面 -->

<style type="text/css">
<!--
.STYLE1 {
	font-family: "华文仿宋";
	font-size: 24px;
	color: #384F92;
}
.STYLE4 {font-family: "华文仿宋"; font-size: 20px; color: #384F92; }
-->
</style>
<body>
    <%Vector vec = (Vector)context.getSessionValue("list");%>
    <%//String realPath = FileBusiness.getRealPath(); %>
    <%WritePage write = new WritePage(); %>
    <%//Vector vec = FileBusiness.getFiles(realPath); %>
    <%Vector cateVec = write.getProductOrCatrgoryVec(vec,"_000000_材料分类文件");%>
    <%Vector proVec = write.getProductOrCatrgoryVec(vec,"_000000_材料编码文件");%>
    <%Vector wareVec = write.getWarehouseVec(vec);%>
    <%PrintWriter print = response.getWriter(); %>
    <form action="Jw" method="post" name="form"    target="_blank">
    <input type="hidden" name="code">
        <table>
            <tr>
                <td colspan="3"><span class="STYLE1">机务系统文件列表</span></td>
          </tr>
            <tr>
                <td colspan="3"><hr width="820"></td>
            </tr>
            <tr>
                <td colspan="3"><span class="STYLE4">产品列表</span></td>
          </tr>
            <tr>
                <td colspan="3"><hr width="750"></td>
            </tr>
            <%write.draw(request,response,proVec,print);%> 
            <tr>
                <td colspan="3"><span class="STYLE4">类型列表</span></td>
          </tr>
            <tr>
                <td colspan="3"><hr width="750"></td>
            </tr>
            <%write.draw(request,response,cateVec,print);%> 
            <tr>
                <td><span class="STYLE4">仓库列表</span></td>
          </tr>
            <tr>
                <td colspan="3"><hr width="750"></td>
            </tr>
            <%write.draw(wareVec,print,con);%> 
        </table>
    </form>
</body>
<%@ include file="/framework/foot.jsp"%>